/**
 * @Author: 小狐
 * @Date: 2021/11/27 9:36
 * @Describe 主动去学习
 *
 */
package dao

import (
	"cinema/model"
	"context"
	"dubbo_maoyan/api/api"
)

type cinemaDao struct {
	
}

var CinemaDao = &cinemaDao{}

func(c *cinemaDao) GetCinemaList(ctx context.Context,request *api.RegionRequest) []*model.Cinema {

	var cinemaList []*model.Cinema

	Connection.Where(request, "city_id", "county_id", "type").Find(cinemaList).Offset(int(request.PageNum)).Limit(int(request.PageSize))

	return cinemaList

}
